<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>camray: src/camera_array_settings.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">camray
   </div>
   <div id="projectbrief">Depth mapping algorithms using a camera array</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('camera__array__settings_8cpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">camera_array_settings.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Allows settings to be changed for UVC compliant webcams.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;camera_array_settings.h&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7e7bb2240a5e74c38d79bf92115be5c4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="camera__array__settings_8cpp.html#a7e7bb2240a5e74c38d79bf92115be5c4">init_cams</a> (FileNode fs)</td></tr>
<tr class="separator:a7e7bb2240a5e74c38d79bf92115be5c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab897d9710b4f7d5fb766476c64a2f17a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="camera__array__settings_8cpp.html#ab897d9710b4f7d5fb766476c64a2f17a">set_exposure_absolute</a> (int vid_num, int new_setting)</td></tr>
<tr class="separator:ab897d9710b4f7d5fb766476c64a2f17a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacbe0f94677ad4c0e28f58b717ac12b9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="camera__array__settings_8cpp.html#aacbe0f94677ad4c0e28f58b717ac12b9">set_exposure_auto</a> (int vid_num, int new_setting)</td></tr>
<tr class="separator:aacbe0f94677ad4c0e28f58b717ac12b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae02a84ae96d0f35f09d06cf30382feaa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="camera__array__settings_8cpp.html#ae02a84ae96d0f35f09d06cf30382feaa">set_exposure_auto_priority</a> (int vid_num, int new_setting)</td></tr>
<tr class="separator:ae02a84ae96d0f35f09d06cf30382feaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05d360b013d34ede92e396501fb2398d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="camera__array__settings_8cpp.html#a05d360b013d34ede92e396501fb2398d">set_white_balance_temperatue_auto</a> (int vid_num, int new_setting)</td></tr>
<tr class="separator:a05d360b013d34ede92e396501fb2398d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Allows settings to be changed for UVC compliant webcams. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a7e7bb2240a5e74c38d79bf92115be5c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int init_cams </td>
          <td>(</td>
          <td class="paramtype">FileNode&#160;</td>
          <td class="paramname"><em>fs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Brian Fehrman</dd></dl>
<dl class="section user"><dt>Description:</dt><dd>Change the settings for each camera. Right now it makes the settings the same for all cameras. Future update could include setting each camera individually.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fs</td><td>- FileNode pointing to the settings that are needed</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 - everything went fine </dd></dl>

</div>
</div>
<a class="anchor" id="ab897d9710b4f7d5fb766476c64a2f17a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool set_exposure_absolute </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vid_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>new_setting</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Brian Fehrman</dd></dl>
<dl class="section user"><dt>Description:</dt><dd>Sets the absolute exposure level of the camera. Make sure that you set "Exposure, Auto" to 1 (manual mode) and "Exposure, Auto Priority" to 0 (auto exposure off) before calling this function.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">vid_num</td><td>- /dev/video number of camera for which to change the settings </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">new_setting</td><td>- New absolute exposure value. Input Range: [ 1, 10000 ] where less is more</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>false - system call failed </dd>
<dd>
true - system call success </dd></dl>

</div>
</div>
<a class="anchor" id="aacbe0f94677ad4c0e28f58b717ac12b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool set_exposure_auto </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vid_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>new_setting</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Brian Fehrman</dd></dl>
<dl class="section user"><dt>Description:</dt><dd>Sets exposure mode to manual or auto. Need to call this function once and set to manual before calling set_exposure_absolute.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">vid_num</td><td>- /dev/video number of camera for which to change the settings </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">new_setting</td><td>- New auto exposure mode setting : 1 - Manual Mode, 3 - Auto Exposure Mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>false - system call failed </dd>
<dd>
true - system call success </dd></dl>

</div>
</div>
<a class="anchor" id="ae02a84ae96d0f35f09d06cf30382feaa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool set_exposure_auto_priority </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vid_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>new_setting</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Brian Fehrman</dd></dl>
<dl class="section user"><dt>Description:</dt><dd>Turn auto priortity exposure on or off</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">vid_num</td><td>- /dev/video number of camera for which to change the settings </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">new_setting</td><td>- New auto priority exposure mode setting : 0 - Off, 1 - On</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>false - system call failed </dd>
<dd>
true - system call success </dd></dl>

</div>
</div>
<a class="anchor" id="a05d360b013d34ede92e396501fb2398d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool set_white_balance_temperatue_auto </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vid_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>new_setting</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Brian Fehrman</dd></dl>
<dl class="section user"><dt>Description:</dt><dd>Turn auto white balance on or off</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">vid_num</td><td>- /dev/video number of camera for which to change the settings </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">new_setting</td><td>- New auto white balance mode setting : 0 - Off, 1 - On</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>false - system call failed </dd>
<dd>
true - system call success </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="camera__array__settings_8cpp.html">camera_array_settings.cpp</a></li>
    <li class="footer">Generated on Tue Apr 23 2013 23:15:47 for camray by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li>
  </ul>
</div>
</body>
</html>
